
spec2def(newdev.dll newdev.spec ADD_IMPORTLIB)

list(APPEND SOURCE
    newdev.c
    stubs.c
    wizard.c
    newdev_private.h
    ${CMAKE_CURRENT_BINARY_DIR}/newdev_stubs.c)

add_library(newdev MODULE
    ${SOURCE}
    newdev.rc
    ${CMAKE_CURRENT_BINARY_DIR}/newdev.def)

set_module_type(newdev win32dll UNICODE)
target_link_libraries(newdev wine)
add_importlibs(newdev gdi32 comctl32 setupapi advapi32 user32 shell32 shlwapi ole32 msvcrt kernel32 ntdll)
add_pch(newdev newdev_private.h SOURCE)
add_cd_file(TARGET newdev DESTINATION reactos/system32 FOR all)
